/**
 * 
 */
package com.cchr.acms.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Fanxin Zeng
 *
 */
@Controller
public class IndexController {
	
    @RequestMapping("/")
    public String index(HttpServletRequest request)
    {
    	if(request.getSession().getAttribute("userName") == null)
    	{
    		return "redirect:/user/login";
    	}
        return "redirect:/case/showAbuseList";
    }
    
    @RequestMapping("/main")
    public String main(HttpServletRequest request)
    {
        return "main";
    }
    
}
